"""
有如下员工信息，请使用字典完成数据的记录
并通过for循环，对所有级别为1级的员工，级别上升1级，薪水增加1000元
"""
# 组织字典记录数据
info_dict = {"王力宏":{"部门":"科技部","工资":3000,"级别":1},
             "周杰伦":{"部门":"市场部","工资":5,"级别":2},
             "林俊杰":{"部门":"市场部","工资":7000,"级别":3},
             "张学友":{"部门":"科技部","工资":4000,"级别":1},
             "刘德华":{"部门":"市场部","工资":6000,"级别":2}}
print(info_dict)

# for循环遍历字典
for key in info_dict:
    # 获取符合加薪员工的信息
    if info_dict[key]["级别"] == 1:
        # 级别增加
        info_dict[key]["级别"] = 2
        info_dict[key]["工资"] += 1000
print(info_dict)